<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WebView Message Port Demo</title>
</head>
<body>
<div>
    <button style="margin-top:10px" type="button" onclick="callArkTS()">点击调用app方法</button>

    <button style="margin-top:10px;margin-left:10px" type="button" onclick="callArkTS2()">点击调用app方法2</button>

    <button style="margin-top:10px" type="button" onclick="callArkTS3()">点击调用app方法3</button>
</div>
<script>
    function callArkTS() {
      app.webToAppMethond('web传给APP的参数')
   }

    function callArkTS2() {
      let str = app.getAppInfo();
       alert(str)
   }

function callArkTS3() {
      let str = app.getAppInfo2();
       alert(str)
   }

   function htmlTest(){
      console.info('app调用web方法 ');
     alert("app调用web方法")
   }


   function htmlTestWithParam(obj){
     alert(obj)
   }

</script>
</body>
</html>